package main.java.study.step02;

/**
 * @author liuwenxiu
 * @Description:
 * @date 2022-7-13 13:37
 */
public class App {
    public int sum(int[] array){
        int a = 0;
        for(int i=0; i<array.length; i++){
            a += array[i];
        }
        return a;
    }

    public static void main(String[] args) {
        App app = new App();
        int[] arr = {1,3,4};
        app.sum(arr);
    }
}
